﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ModuleList.aspx.cs" Inherits="Manage_Cms_ModuleList" %>

<%@ Import Namespace="KeRui.Model" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <form>
        <div class="column">
            <div class="columntitle" style="text-align: right; height: 20px; vertical-align: middle;">
                <span style="float: left">对应字段管理</span>
            </div>
            <table cellspacing="1" cellpadding="1" rules="all" align="center" border="0" id="MyDataGrid"
                style="border-width: 0px; width: 100%;">
                <tr class="summary-title" align="center">
                    <td style="width:20%;">
                        模块名称</td>
                    <td style="width:10%;">
                        数据所在表</td>
                    <td style="width:10%;">
                        数据记录数</td>
                    <td style="width:23%;">
                        Where查询条件</td>
                    <td style="width:22%;">
                        排序</td>
                    <td style="width:15%;">
                        操作</td>
                </tr>
                <%
                    foreach (TagModule model in listTagModule)
                    {
                %>
                <tr class="tdbg" onmouseover="this.className='tdbg-dark';" align="center" onmouseout="this.className='tdbg';"
                    style="height: 30px;">
                    <td class="th" align="center" width="200px">
                        parameter_<%=model.ModuleName %>
                    </td>
                    <td align="center">
                        <%=model.DataTable %>
                    </td>
                    <td align="center">
                        <%=model.TopNum %>
                    </td>
                    <td align="center">
                        <%=model.StrWhere %>
                    </td>
                    <td align="center">
                        <%=model.OrderBy %>
                        &nbsp;<%=model.Direction %>
                    </td>
                    <td align="center">
                        <a href="ModuleItem.aspx?act=modify&id=<%=model.ModuleID %>">修改</a>&nbsp;<a href="javascript:void(0)"
                            onclick='if(confirm("确定删除该模块？")){window.location.href="ModuleList.aspx?act=delete&id=<%=model.ModuleID %>"}'>删除</a>&nbsp;<a href="ModuleItem.aspx?act=view&id=<%=model.ModuleID %>&name=<%=model.ModuleName %>">预览</a></td>
                </tr>
                <%
                    } %>
            </table>
        </div>
        <br />
        <input type="button" id="btnadd" name="btnadd" value="添加模块" onclick="window.location.href='ModuleItem.aspx'"
            class="button" />
    </form>
</body>
</html>
